/*    */ package handling.channel.handler;
/*    */ 
/*    */ import client.MapleClient;
/*    */ import scripting.event.EventManager;
/*    */ import scripting.npc.NPCScriptManager;
/*    */ import tools.MaplePacketCreator;
/*    */ 
/*    */ public class UserInterfaceHandler
/*    */ {
/*    */   public static void CygnusSummon_NPCRequest(MapleClient c) {
/* 11 */     if (c.getPlayer().getJob() == 2000) {
/* 12 */       NPCScriptManager.getInstance().start(c, 1202000);
/* 13 */     } else if (c.getPlayer().getJob() == 1000) {
/* 14 */       NPCScriptManager.getInstance().start(c, 1101008);
/*    */     } 
/*    */   }
/*    */ 
/*    */ 
/*    */   
/*    */   public static void ShipObjectRequest(int mapid, MapleClient c) {
/*    */     EventManager em;
/* 22 */     int effect = 3;
/* 23 */     switch (mapid) {
/*    */       case 101000300:
/*    */       case 200000111:
/* 26 */         em = c.getChannelServer().getEventSM().getEventManager("Boats");
/* 27 */         if (em != null && em.getProperty("docked").equals("true")) {
/* 28 */           effect = 1;
/*    */         }
/*    */         break;
/*    */       case 200000121:
/*    */       case 220000110:
/* 33 */         em = c.getChannelServer().getEventSM().getEventManager("Trains");
/* 34 */         if (em != null && em.getProperty("docked").equals("true")) {
/* 35 */           effect = 1;
/*    */         }
/*    */         break;
/*    */       case 200000151:
/*    */       case 260000100:
/* 40 */         em = c.getChannelServer().getEventSM().getEventManager("Geenie");
/* 41 */         if (em != null && em.getProperty("docked").equals("true")) {
/* 42 */           effect = 1;
/*    */         }
/*    */         break;
/*    */       case 200000131:
/*    */       case 240000110:
/* 47 */         em = c.getChannelServer().getEventSM().getEventManager("Flight");
/* 48 */         if (em != null && em.getProperty("docked").equals("true")) {
/* 49 */           effect = 1;
/*    */         }
/*    */         break;
/*    */       case 200090000:
/*    */       case 200090010:
/* 54 */         em = c.getChannelServer().getEventSM().getEventManager("Boats");
/* 55 */         if (em != null && em.getProperty("haveBalrog").equals("true")) {
/* 56 */           effect = 1;
/*    */           break;
/*    */         } 
/*    */         return;
/*    */       
/*    */       default:
/* 62 */         System.out.println("Unhandled ship object, MapID : " + mapid);
/*    */         break;
/*    */     } 
/* 65 */     c.announce(MaplePacketCreator.boatPacket(effect));
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\channel\handler\UserInterfaceHandler.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */